import React, { Component } from 'react'
import { HashRouter, Route, Switch } from 'react-router-dom';
import Layout from '@/pages/Layout'
import Login from '@/pages/Login'
import UserInfo from '@/pages/UserInfo'

export default class index extends Component {
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path='/login' component={Login}></Route>
                    <Route path='/userinfo' component={UserInfo}></Route>
                    <Route path='/' component={Layout}></Route>
                </Switch>
            </HashRouter>
        )
    }
}
